<cfsavecontent variable="headtext">
	<script>
		$(document).ready(function() {
   			$("#gettime").click(function() {
   				$("#timedisplay").load("<cfoutput>#buildUrl("examples","loadtime")#</cfoutput>");
   				$("#gettime").val("Try it again!");
   			});
 		});
	</script>
</cfsavecontent>

<cfhtmlhead text="#headtext#" />

<h2>jQuery Ajax Example</h2>
<p>This is a simple Ajax example in which we retrieve the current system time through an Ajax event.  This is notable
in that you will see that we are overriding the defaultLayout with a raw layout that simply displays the content without
any HTML wrapper.</p>
<p>Try it...</p>
<p><input type="button" id="gettime" value="get time" />&nbsp;Current time is: <span id="timedisplay">(click to load!)</span></p>